<div class="ui menu">
	<span class="active item">项目</span>
	<div class="right menu">
		<div class="item">
			<div class="ui icon transparent input">
				<input type="text" placeholder="模糊筛选" ng-model="subSearch">
				<i class="search link icon"></i>
			</div>
		</div>
		<a href="#!/project/add" class="ui item">
			<i class="edit basic icon"></i> 添加项目
		</a>
	</div>
</div>


<table class="ui table segment">
	<thead>
		<tr>
			<th>应用</th>
			<th>名称</th>
			<th>JIRA</th>
			<th>交互稿</th>
			<th>视觉稿</th>
			<th>前端</th>
			<th>版本</th>
			<th>编辑</th>
		</tr>
	</thead>
	<tbody>
	<tr ng-repeat="project in filtered = (projects | orderBy: '-related_version') | filter:subSearch">
		<td>{{project.program.name}}</td>
		<td>{{project.name}}</td>
		<td>
			<a href="http://jira.vemic.com/browse/{{project.jira_uri}}" ng-if="project.jira_uri"  target="_blank">
				{{project.jira_uri}}
			</a>
			<div class="sub">{{project.personnel_pd.name}}</div>
		</td>
		<td>
			<a href="{{project.ix_uri}}" ng-if="project.ix_uri" target="_blank">
				查看
			</a>
			<div class="sub">{{project.personnel_ia.name}}</div>
		</td>
		<td>
			<a href="{{project.gandolf_uri}}" ng-if="project.gandolf_uri" target="_blank">
				查看
			</a>
			<div class="sub">{{project.personnel_ga.name}}</div>
		</td>
		<td>
			<div ng-if="project.personnel_fe.name">
				{{project.personnel_fe.name}}
			</div>
		</td>
		<td>{{project.related_version}}</td>
		<td>
			<a href="#!/project/edit/{{project._id}}"
				class="ui button tiny compact">编辑</a>
			<a ng-click="deleteProject(project._id)" 
				class="ui button icon tiny compact">
				<i class="remove icon"></i>
			</a>
		</td>
	</tr>
	</tbody>
</table>

<a href="#!/project/add" class="ui blue submit button icon">
	<i class="edit basic icon"></i>
	添加项目
</a>
